/**
 * @Author: 小狐
 * @Date: 2021/11/29 16:39
 * @Describe 主动去学习
 *
 */
package main

import (
	"dubbo.apache.org/dubbo-go/v3/config"
	_ "dubbo.apache.org/dubbo-go/v3/imports"
	"event/boot"
	"event/service"
	"fmt"
	"path/filepath"
)

func main() {
	//初始化配置
	boot.Init()
	config.SetProviderService(&service.EventProvider{})
	if configPath, err := filepath.Abs("provider/dubbogo.yml"); err != nil {
		fmt.Println("配置文件缺少",err)
	}else{
		if err := config.Load(config.WithPath(configPath)); err != nil {
			panic(err)
		}
	}
	select{}
}
